<%@ page import="java.util.*,linuxbox.util.*" %>
<%@ page import="com.thebox.config.*" %>

<%@ include file="/en/jsp/static.jsp" %>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
  <td height="18" bgcolor="#E06000"><b>
  <font size="2" color="#FFFFFF">&nbsp;Office </font></b> </td>
</tr>
<tr>
  <td height="5"> </td>
</tr>

<%
  Iterator it = BoxStatic.mainConfig.getAllModules();
  while (it.hasNext())
  {
    ModuleConfig mod = (ModuleConfig)it.next();
    if (mod != null && mod.getCategory()!=null)
    {

      if ( mod.getCategory().compareTo("Office") == 0 )
      {
%>
<tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
    <a href="<%=mod.getURL()%>"><b><%=mod.getFullName()%></b></a></td>
</tr>

<%
      }
    }
  }
%>
<tr>
  <td height="10"> </td>
</tr>
<tr>
  <td height="18" bgcolor="#E06000"><font size="2"><b>&nbsp;<font color="#FFFFFF">Personal</font></b></font></td>
</tr>
<tr>
  <td height="5"> </td>
</tr>

<%
  it = BoxStatic.mainConfig.getAllModules();
  while (it.hasNext())
  {
    ModuleConfig mod = (ModuleConfig)it.next();
    if (mod != null && mod.getCategory()!=null)
    {
      if ( mod.getCategory().compareTo("Personal") == 0)
      {
%>
<tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
    <a href="<%=mod.getURL()%>"><b><%=mod.getFullName()%></b></a></td>
</tr>

<%
      }
    }
  }
%>

<tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
    <a href="<%=ROOT%>/WebMail/login?login=<%=curUserID%>&password=1&vdom=localnet"><b>WebMail </b></a> </td>
</tr>

<!--tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
    <a href="<%=BoxStatic.jspDir%>calendar/BoxCalendar.jsp"><b>Calendar</b></a></td>
</tr>
<tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
  <a href="<%=BoxStatic.jspDir%>todo/BoxTodo.jsp"><b>Todo List</b></a></td>
</tr>
<tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
    <a href="<%=BoxStatic.jspDir%>status/Status.jsp"><b>User Status</b></a> </td>
</tr>
<tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
    <a href="<%=ROOT%>/WebMail/login?login=<%=curUserID%>&password=1&vdom=localnet"><b>WebMail </b></a> </td>
</tr>
<tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
    <a href="<%=BoxStatic.jspDir%>admin/passwd.jsp"><b>Password</b></a> </td>
</tr-->

<tr>
  <td height="10"> </td>
</tr>
<tr>
  <td height="18" bgcolor="#E06000"><font size="2"><b>&nbsp;<font color="#FFFFFF">Others</font></b></font></td>
</tr>
<tr>
  <td height="5"> </td>
</tr>
<% if (sec.isAnyAdmin()) { %>
<tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
    <a href="<%=BoxStatic.jspDir%>admin/AdminMain.jsp"><b>Administration</b></a> </td>
</tr>
<% } %>
<tr>
  <td height="20">&nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width="14" height="15" align="absmiddle" border=0>
    <a href="<%=BoxStatic.servletDir%>AdminLogoutAction"><b>Logout</b></a> </td>
</tr>
<tr>
  <td height="10"></td>
</tr>
</table>
